package com.wzx.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/7/26 - 18:42
 * @description 群聊
 */
@Data
@TableName("t_group")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Group", description = "群聊表")
public class Group {
    @TableId(value = "gid", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Integer gid;

    @TableField("createName")
    @ApiModelProperty(value = "创始人姓名")
    private String createName;

    @TableField("createId")
    @ApiModelProperty(value = "创建人id")
    private Integer createId;

    @TableField("createTime")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @TableField("groupName")
    @ApiModelProperty(value = "群聊名称")
    private String groupName;

    @TableField("groupHead")
    @ApiModelProperty(value = "群聊头像")
    private String groupHead;

    @TableField("updateTime")
    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @TableField("username")
    @ApiModelProperty(value = "账号")
    private String username;

    @TableField("typeName")
    @ApiModelProperty(value = "群组类型")
    private String typeName;

    @TableField("groupDescribe")
    @ApiModelProperty(value = "群聊描述")
    private String groupDescribe;

    @TableField("estoppel")
    @ApiModelProperty(value = "群禁言（1：开启禁言；其他非禁言）")
    private String estoppel;

    @TableField("protect")
    @ApiModelProperty(value = "群保护模式（1，开启保护；其他未开启）")
    private String protect;

    @TableField("inviteType")
    @ApiModelProperty(value = "邀请方式（1，需要验证；其他表示不用验证）")
    private String inviteType;
}
